<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="main">
<head>
    <meta charset="UTF-8">
    <title>新增销售机会</title>
    <script th:src="@{/js/jquery.min.js}" src="../static/js/jquery.min.js"></script>
</head>
<body>
<div layout:fragment="content">
    <div class="clearfix"></div>
    <div class="row">
        <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="x_panel">
                <div class="x_title">
                    <h2>新增销售机会<i class="fa fa-user"></i></h2>
                    <div class="clearfix"></div>
                </div>
                <div class="x_content">
                    <div class="clearfix"></div>
                    <form class="form-horizontal form-label-left" th:action="@{/chance/addSave}" action="/chance/addSave"
                          method="post">

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">客户名称<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="chcCustName" name="chcCustName"
                                       class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1"
                                       required="required" type="text">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">机会来源<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="chcSource" name="chcSource"
                                       class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1"
                                       required="required" type="text">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">概要&nbsp;&nbsp;<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="chcTitle" name="chcTitle"
                                       class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1"
                                       required="required" type="text">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">成功几率<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="chcRate" name="chcRate"
                                       class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1"
                                       required="required" type="text">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">联系人&nbsp;<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="chcLinkman" name="chcLinkman"
                                       class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1"
                                       required="required" type="text">
                            </div>
                        </div>
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">联系人电话<span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input id="chcTel" name="chcTel"
                                       class="form-control col-md-7 col-xs-12"
                                       data-validate-length-range="20" data-validate-words="1"
                                       required="required" type="text">
                            </div>
                        </div>

                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">机会描述&nbsp;&nbsp;</label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <textarea id="chcDesc" name="chcDesc"
                                          class="form-control col-md-7 col-xs-12"
                                          rows="5" placeholder="请输入角色描述"></textarea>
                            </div>
                        </div>

                        <div class="ln_solid"></div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-3">
                                <button id="send" type="submit" class="btn btn-success">保存</button>
                                <button type="button" class="btn btn-primary" id="back"
                                        onclick="javascript:window.history.back();">返回
                                </button>
                                <br/><br/>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>